﻿using System.Web.UI.WebControls;

namespace PortalCurriculo.Util.CustomControls.ListViewObjects
{
    public class TableStructure
    {
        public TableStructure() { }

        public TableStructure(string summary, string caption, string cssClass, string cssClassGenericField)
        {
            Summary = summary;
            Caption = caption;
            CssClass = cssClass;
            CssClassGenericField = cssClassGenericField;
        }

        public TableStructure(string summary, string caption, string cssClass)
        {
            Summary = summary;
            Caption = caption;
            CssClass = cssClass;
        }

        public string Summary { get; set; }
        public string Caption { get; set; }
        public string CssClass { get; set; }
        public string CssClassGenericField { get; set; }
    }

    public class Field
    {
        public Field() { }

        public Field(string name)
        {
            DisplayName = Name = name;
        }

        public Field(string name, string displayName)
        {
            DisplayName = displayName;
            Name = name;
        }

        public Field(string name, string displayName, string cssClass)
        {
            DisplayName = displayName;
            Name = name;
            CssClass = cssClass;
        }

        public Field(string name, string displayName, string cssClass, string abbreviatedText)
        {
            DisplayName = displayName;
            Name = name;
            CssClass = cssClass;
            AbbreviatedText = abbreviatedText;
        }

        public string DisplayName { get; set; }
        public string Name { get; set; }
        public string CssClass { get; set; }
        public string AbbreviatedText { get; set; }
    }
}

